<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
    <script  src="js/require.js" data-main="js/main"></script>
    <script type="text/javascript">
//        require(["jquery"],function($){
//            $(function(){
//                alert("load finished");
//                $("#ss").html("ssssssss");
////                _.each([1,2,3], alert);
//            })
//        });
        require(["jquery-2.2.3.min","a","data","data-api"],function($,a,data,api){
            alert("load success");
            $("#ss").html("ssssss"+data.username+"age:"+data.age);
            alert(api.getUserData().then(function(user){
               console.log(user);
            }));
           // _.each([1,2,3], alert);
        })
    </script>
<body>
<span id="ss">body</span>
</body>
</html>